﻿
@using Single_SignOn.ResX
@using Single_SignOn.Areas.Web.Models
@model IEnumerable<Single_SignOn.Areas.Web.Models.ApplicationList>
<table id="_ApplicationList" class="center">
    <tbody>
        <tr class="tr_header">
            <th style="width: 20%;height: 25px;">@ResourceTools.GetResource("Resource", "No")</th>
            <th style="width: 80%;height: 25px;">@ResourceTools.GetResource("Resource", "Application")</th>
        </tr>
        @foreach (ApplicationList oApplicationList in Model)
        {
            <tr id="_ApplicationListRows" class="tr_style">
                <td style="width: 20%;">@oApplicationList.No</td>
                <td style="width: 80%;cursor:pointer;">
                        <div style="margin-top:10px;  vertical-align: middle;height: 25px;cursor:pointer;" class="ApplicationList" title="@oApplicationList.Description"  data="@oApplicationList.ApplNo">@oApplicationList.Description </div>
                </td>
            </tr>
        }
    </tbody>
</table>
<div class="display">
    <a id="urlApplicationLis" href="@Html.AttributeEncode(Url.Action("GetToken", "ApplicationList", new {applicationList = ""}))" style="display:none;"></a>
    
    <script type="text/javascript">
        /**/ $(document).ready(function () {
            var language = $("#Language").val();
            var company = $("#Company").val();
            $('.ApplicationList').click(function (obj) {
                document.location.href = $('#urlApplicationLis').attr('href') + "?applno=" + $(this).attr('data') + "&company=" + company + "&language=" + language;
            });
        });
    </script>
</div>

